#ifndef _SCA_DISPLAY_INC
#define _SCA_DISPLAY_INC

#include "sca_display.h"

UINT8 m_ucChars[5];



#define   SegA        0x08  // 0x01     
#define   SegB        0x10  // 0x02
#define   SegC        0x20  // 0x10
#define   SegD        0x40  // 0x04
#define   SegE        0x80  // 0x80
#define   SegF        0x02  // 0x20
#define   SegG        0x01  // 0x08
#define   SegDP       0x04  // 0x40

#define   Digit0    SegA|SegB|SegC|SegD|SegE|SegF      //*"0"*//
#define   Digit1    SegB|SegC                          //*"1"*//
#define   Digit2    SegA|SegB|SegD|SegE|SegG           //*"2"*//
#define   Digit3    SegA|SegB|SegC|SegD|SegG           //*"3"*//
#define   Digit4    SegB|SegC|SegF|SegG                //*"4"*//
#define   Digit5    SegA|SegC|SegD|SegF|SegG           //*"5"*//
#define   Digit6    SegA|SegC|SegD|SegE|SegF|SegG      //*"6"*//
#define   Digit7    SegA|SegB|SegC                     //*"7"*//
#define   Digit8    SegA|SegB|SegC|SegD|SegE|SegF|SegG //*"8"*//
#define   Digit9    SegA|SegB|SegC|SegD|SegF|SegG      //*"9"*//

#define   VV    SegB|SegC|SegD|SegE|SegF                //*"V"*//
#define   SS    SegA|SegC|SegD|SegF|SegG                //*"S"*//
#define   EE    SegA|SegD|SegE|SegF+SegG                //*"E"*//
#define   TT    SegD|SegE|SegF|SegG                     //*"T"*//
#define   CC    SegA|SegD|SegE|SegF                     //*"C"*//
#define   AA    SegA|SegB|SegC|SegE+SegF|SegG           //*"A"*//
#define   LL    SegD|SegE|SegF                          //*"L"*//
#define   PP    SegA|SegB|SegE|SegF|SegG                //*"P"*//
#define   DD    SegB|SegC|SegD|SegE|SegG                //*"D"*//
#define   BB    SegC|SegD|SegE|SegF|SegG                //*"B"*//
#define   GG    SegA|SegB|SegC|SegD|SegF|SegG           //*"G"*//

#define   RR    SegE|SegG                               //*"r"*//
#define   NN    SegC|SegE|SegG                          //*"n"*//
#define   FF    SegA|SegE|SegF|SegG                     //*"F"*//
#define   OO    SegA|SegB|SegC|SegD|SegE|SegF           //*"O"*//
#define   II    SegE                                    //*"i"*//

#define   NO_LIGHT        0x00  // 0x01   


__flash UINT8 uacDigit[10]={Digit0,Digit1,Digit2,Digit3,Digit4,Digit5,Digit6,Digit7,Digit8,Digit9};
__flash UINT8 uacBaidot[3]={0,0,SegDP};
__flash UINT8 uacShidot[3]={0,SegDP,0};

void SCA_DisplayChars(UINT8 *pucChar);

void SCA_DisplayVersions(void);

void SCA_DisplayMaxweight(unsigned int weight);

void SCA_DisplaySupplyVoltage(void);

void SCA_DisplayAll(char status);

void SCA_Display(unsigned long number,UINT8 ucDot);

void SCA_DisplayNumberDlg();

void SCA_DisplaySetDlg(void);

void SCA_DisplaySet();

void SCA_DisplaySetDivisionValue(void);

void SCA_DisplaySetRadixPoint(void);

void SCA_DisplaySetMaxWeight(void);

void SCA_DisplaySetDocimasyDivisionValue(void);

void SCA_DisplaySetKgLb(void);

void SCA_DisplaySetTare(void);

void SCA_DisplaySetCloseTime(void);

void SCA_DisplaySetSavePowerTime(void);

void SCA_DisplaySetLedLuminance(void);

void SCA_DisplaySetDisplayRate(void);

void SCA_DisplaySetAntiRock(void);

void SCA_DisplayCalspDlg(void);

void SCA_DisplayAdDlg(void);

void SCA_DisplayPatDlg(void);

void SCA_DisplayWeighingDlg(void);

void SCA_DisplayQueryDlg(void);

void SCA_DisplayPowerOff(void);

#endif
